import request from '@/utils/request'

// 查询传感器采集列表
export function listSensorList(query) {
  return request({
    url: '/data/sensorList/list',
    method: 'get',
    params: query
  })
}

// 查询传感器采集详细
export function getSensorList(id) {
  return request({
    url: '/data/sensorList/' + id,
    method: 'get'
  })
}

// 新增传感器采集
export function addSensorList(data) {
  return request({
    url: '/data/sensorList',
    method: 'post',
    data: data
  })
}

// 修改传感器采集
export function updateSensorList(data) {
  return request({
    url: '/data/sensorList',
    method: 'put',
    data: data
  })
}

// 删除传感器采集
export function delSensorList(id) {
  return request({
    url: '/data/sensorList/' + id,
    method: 'delete'
  })
}
